import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-10-20
 * Time: 20:20
 */
public class Demo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("./text.txt");

        //file.createNewFile();

        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
    }
}
